home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 1143 < prev    next >
Encoding:
Text File  |  1996-08-06  |  1.1 KB  |  35 lines

  1. Path: news1.h1.usa.pipeline.com!usenet
  2. From: grantp@usa.pipeline.com
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Using Delphi's dll in vc++
  5. Date: 9 Jan 1996 15:58:17 GMT
  6. Organization: Pipeline USA
  7. Message-ID: <4cu3ap$9s1@news1.usa.pipeline.com>
  8. NNTP-Posting-Host: pipe5.h1.usa.pipeline.com
  9. X-PipeUser: grantp
  10. X-PipeHub: usa.pipeline.com
  11. X-PipeGCOS: (Pete)
  12. X-Newsreader: Pipeline USA v3.3.0
  13.  
  14. On Jan 09, 1996 12:06:45 in article <Using Delphi's dll in vc++>,
  15. 'tywang@csie.nctu.edu.tw (Hope-Wonderland)' wrote: 
  16.  
  17.  
  18. >    Hi, 
  19. >       Can someone help me ??  I have a .dll file, and use  
  20. >    implib.exe to generate a .lib file. Then, I use the .lib 
  21. >    in MSVC 2.0 to build my own application, but linker said 
  22. >    that .lib is invalid or corrupted... why??? I have tried  
  23. >    several times..... Could someone help me ?? 
  24. This is a 16-bit library vs. 32-bit caller problem.  You can't link the 
  25. import library to your program.  To call 16-bit DLL functions from  
  26. a 32- bit module, you need to read up on thunks.  The thunking 
  27. mechanism is different for NT, Win95, and Win32S so it's not 
  28. portable. 
  29.  
  30. -- 
  31.  
  32. Pete
  33.